package com.gitee.wsl.io.storage.event

import kotlinx.serialization.Serializable

@Serializable
data class ItemEvent(
    val id: String,
    val createdAt: Long,
    val expireAt: Long?,
    val itemType: String,
    val itemKey: String,
    val itemListType: String?,
    val listPositionId: String?,
    val eventType: ItemEventType
) {
    companion object {
//        internal fun from(itemEvent: ItemEvent): KottageEvent {
//            return KottageEvent(
//                id = itemEvent.id,
//                createdAt = itemEvent.createdAt,
//                expireAt = itemEvent.expireAt,
//                itemType = itemEvent.itemType,
//                itemKey = itemEvent.itemKey,
//                listType = itemEvent.itemListType,
//                listPositionId = itemEvent.itemListId,
//                eventType = ItemEventType.from(itemEvent.eventType)
//            )
//        }
    }
}